Skip to content

Add a synthetic code performance benchmark prompt and skill - #100

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/synthetic-code-performance-benchmark-c292
Nov 29, 2026
Merged

cursor[bot] merged 2 commits into
mainfrom
cursor/synthetic-code-performance-benchmark-c292

Conversation

@rmkr-dev

Copy link
Copy Markdown
Owner

Summary

Adds a language-neutral synthetic performance pack to Skillbook and Promptbook.

  • Skill synthetic-code-performance-benchmark — standing procedure for Copilot, Claude Code, and Codex. Install it on demand (.github/skills/, .claude/skills/, or a short AGENTS.md pointer). Do not paste the full procedure into an always-on instructions file.
  • Prompt synthetic-code-performance-report — the pasteable task. Copying the body is enough on its own.
  • The AI hub cards mention the pack.

The pack compares a real BEFORE and AFTER (or says the comparison is unavailable) and writes exactly one offline HTML file, code_performance_analysis.html. It never runs, builds, tests, or profiles the subject to collect timings. Every figure is labelled measured (existing evidence), calibrated (anchored model), or synthetic (normalized estimate). Missing percentiles stay missing.

It is an attachment, not a one-off review of a single stack. A PERFORMANCE ATTACHMENT block sits in front of any other task prompt. The subject can be source, a query, a pipeline, runtime config, or another prompt. EXTENSIONS can add scoring dimensions, workload points, evidence files, and report sections. Those slots cannot waive the no-execute rule or the mandatory sections.

How to use

Paste the prompt with the files attached, or put this above another task and fill the placeholders:

--- PERFORMANCE ATTACHMENT ---
Apply the Synthetic Code Performance Benchmark skill.
TARGET: {{TARGET}}
PATHS: {{PATHS}}
BEFORE: {{BEFORE}}
AFTER: {{AFTER}}
EVIDENCE: {{EVIDENCE}}
WORKLOAD: {{WORKLOAD}}
OUTPUT_PATH: code_performance_analysis.html
EXTENSIONS: none
--- HOST TASK ---

Direct links once this is on main: /skillbook/#synthetic-code-performance-benchmark and /promptbook/#synthetic-code-performance-report.

Test

  • node scripts/site-check.mjs — OK
  • Promptbook search synthetic performance shows 1 of 62, Open shows the task body (including "Never execute the subject"), and Copy reports "Copied to clipboard."
  • Skillbook hash opens the benchmark skill; the body includes the attachment contract and extension slots; Copy works.
  • AI hub cards mention both entries.
  • Phone-width layout wraps the new card and detail without overflow.

Promptbook search and open detail

Safety rules in the copied prompt

Skill extension slots

AI hub

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

cursoragent and others added 2 commits November 29, 2026 06:33
Give Copilot, Claude Code, and Codex a standing procedure for a
language-neutral BEFORE/AFTER performance read that never executes
the subject and can be attached in front of any other task prompt.

Co-authored-by: Ramkumar Ethiraj <rmkr-dev@users.noreply.github.com>
Add the pasteable task that writes one offline HTML performance
report, with an attachment block and extension slots, and mention
the pack on the AI hub.

Co-authored-by: Ramkumar Ethiraj <rmkr-dev@users.noreply.github.com>
@cursor
cursor Bot merged commit 6a88272 into main Nov 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants